﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.Model
{/// <summary>
/// 分类专栏表
/// </summary>
    public class ClassifyColumn:BaseEntity
    {

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(500), Column(TypeName = "varchar(500)")]
        [Display(Name = "分栏名称")]
        public string Title { get; set; }

        [ForeignKey(nameof(Users))]
        public int Uid { get; set; }

        public Users Users { get; set; }
    }
}
